package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 商品对象 tb_prod
 * 
 * @author ruoyi
 * @date 2025-08-02
 */
public class TbProd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long prodId;

    /** SPU */
    @Excel(name = "SPU")
    private String prodSpu;

    /** 商品类型;0实物商品1虚拟商品2卡密/网盘 */
    @Excel(name = "商品类型;0实物商品1虚拟商品2卡密/网盘")
    private Long prodKind;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private Long prodType;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String prodName;

    /** 商品品牌 */
    @Excel(name = "商品品牌")
    private Long brandId;

    /** 商品单位 */
    @Excel(name = "商品单位")
    private Long unitId;

    /** 商品标签 */
    @Excel(name = "商品标签")
    private Long tagId;

    /** 供应商 */
    @Excel(name = "供应商")
    private String appr;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String prodImage;

    private String typeName;



    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    private String brandName;

    public void setProdId(Long prodId) 
    {
        this.prodId = prodId;
    }

    public Long getProdId() 
    {
        return prodId;
    }

    public void setProdSpu(String prodSpu) 
    {
        this.prodSpu = prodSpu;
    }

    public String getProdSpu() 
    {
        return prodSpu;
    }

    public void setProdKind(Long prodKind) 
    {
        this.prodKind = prodKind;
    }

    public Long getProdKind() 
    {
        return prodKind;
    }

    public void setProdType(Long prodType) 
    {
        this.prodType = prodType;
    }

    public Long getProdType() 
    {
        return prodType;
    }

    public void setProdName(String prodName) 
    {
        this.prodName = prodName;
    }

    public String getProdName() 
    {
        return prodName;
    }

    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }

    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }

    public void setTagId(Long tagId) 
    {
        this.tagId = tagId;
    }

    public Long getTagId() 
    {
        return tagId;
    }

    public void setAppr(String appr) 
    {
        this.appr = appr;
    }

    public String getAppr() 
    {
        return appr;
    }

    public void setProdImage(String prodImage) 
    {
        this.prodImage = prodImage;
    }

    public String getProdImage() 
    {
        return prodImage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prodId", getProdId())
            .append("prodSpu", getProdSpu())
            .append("prodKind", getProdKind())
            .append("prodType", getProdType())
            .append("prodName", getProdName())
            .append("brandId", getBrandId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("unitId", getUnitId())
            .append("tagId", getTagId())
            .append("appr", getAppr())
            .append("prodImage", getProdImage())
            .append("typeName", getTypeName())
            .append("brandName", getBrandName())
            .toString();
    }
}
